<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">

<h:head>
	<h:outputStylesheet name="default.css" library="css" />
</h:head>
<h:body>
	<div align="center" style="width:100%; margin-top:60px">
		<h:form id="formLogin" enctype="multipart/form-data">
			<p:growl autoUpdate="true" id="messages" />

			<p:panelGrid columns="2" styleClass="companyHeaderGrid">
				<h:outputText value="Email: " />
				<p:inputText value="#{userMB.user.email}" styleClass="lowercase"
					size="35" required="true" requiredMessage="O Email é obrigatório" />

				<h:outputText value="Senha: " />
				<p:password value="#{userMB.user.password}" size="35"
					required="true" requiredMessage="A Senha é obrigatória" />

				<p:outputLabel/>
				<p:commandButton icon="ui-icon-unlocked" value="Entrar" style="margin-top:10px" action="#{userMB.entrar}" />
				
			</p:panelGrid>
			

		</h:form>
	</div>
</h:body>
</html>